//
//  InvitaionTableViewCell.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/3/23.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "InvitaionTableViewCell.h"

@implementation InvitaionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _labdetail.textColor = MainColor;
    ViewRadius(_header, 20);
}

-(void)setModel:(InvitationModel *)model
{
    _model = model;
    [_header setImageWithURL:safeurl(model.avatar) placeholder:emptyimage];
    _nickname.text = model.user_nickname;
    _labdetail.text = [NSString stringWithFormat:ASLocalizedString(@"获得收益:%@"),model.income_total];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
